package de.lindenvalley.sevmob.network;

import java.util.List;

import org.apache.http.NameValuePair;

public interface ConnectInterface {
	
	/**
	 * This method being connect to the server
	 * @param host - server hostname;
	 * @return if connection has success - return true, whenever return false;
	 */
	public boolean connect(String host);
	
	/**
	 * You might call this function on the finish application
	 */
	public void disconnect();
	
	/**
	 * This method send some data via POST method to the server.
	 * @param data Sending data
	 * @return return result that will receive from server
	 */
	
	public String post(String serverUrl, List<NameValuePair> data);

}
